<!DOCTYPE HTML>
<html lang="{{ language }}" {% block htmlTag %}{% endblock %} {% if options.direction == "rtl" %}dir="rtl"{% endif %}>
    {{ htmlSnippet("html:start")|default("", true)|safe }}
    <head>
        {{ htmlSnippet("head:start")|default("", true)|safe }}
        <meta charset="UTF-8">
        <title>{% block title %}{% endblock %}</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="{% block description %}{% endblock %}">
        <meta name="generator" content="GitBook {{ gitbook.version }}">
        {% if options.author %}<meta name="author" content="{{ options.author }}">{% endif %}
        {% if options.isbn %}<meta name="identifier" content="{{ options.isbn }}" scheme="ISBN">{% endif %}
        {% block head %}{% endblock %}
        {% block style %}{% endblock %}
        {{ htmlSnippet("head:end")|default("", true)|safe }}
    </head>
    <body>
        {{ htmlSnippet("body:start")|default("", true)|safe }}
        {% block content %}{% endblock %}
        {% block javascript %}{% endblock %}
        {{ htmlSnippet("body:end")|default("", true)|safe }}
    </body>
    {{ htmlSnippet("html:end")|default("", true)|safe }}
</html>
